<template>
  <div class="not-found-container">
    <div class="not-found-content">
      <h1 class="error-code">404</h1>
      <div class="error-message">
        <h2>页面未找到</h2>
        <p>抱歉，您访问的页面不存在或已被移除</p>
      </div>
      <div class="actions">
        <el-button type="primary" @click="$router.push('/')">返回首页</el-button>
        <el-button @click="$router.go(-1)">返回上页</el-button>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: 'NotFound'
}
</script>

<style scoped>
.not-found-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: calc(100vh - 140px);
  background-color: #f5f7fa;
}

.not-found-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 40px;
  max-width: 500px;
}

.error-code {
  font-size: 120px;
  font-weight: bold;
  color: #409EFF;
  margin: 0;
  line-height: 1;
}

.error-message {
  margin: 20px 0 30px;
}

.error-message h2 {
  font-size: 28px;
  margin-bottom: 10px;
  color: #303133;
}

.error-message p {
  color: #606266;
  font-size: 16px;
}

.actions {
  display: flex;
  gap: 15px;
}

@media (max-width: 576px) {
  .error-code {
    font-size: 100px;
  }
  
  .error-message h2 {
    font-size: 24px;
  }
  
  .actions {
    flex-direction: column;
  }
}
</style>